import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: resolve => require(['../page/Index.vue'], resolve),
      children:[
        {
          path: '',
          name: 'ProcessList',
          component: resolve => require(['../page/ProcessList.vue'], resolve),
        }, {
          path: 'processList',
          name: 'ProcessList',
          component: resolve => require(['../page/ProcessList.vue'], resolve),
        }, {
          path: 'runTask',
          name: 'RunTask',
          component: resolve => require(['../page/RunTask.vue'], resolve),
        }, {
          path: 'monitor',
          name: 'Monitor',
          component: resolve => require(['../page/Monitor.vue'], resolve),
        }, {
          path: 'modelList',
          name: 'ModelList',
          component: resolve => require(['../page/ModelList.vue'], resolve),
        }, {
          path: 'diagram',
          name: 'Diagram',
          component: resolve => require(['../page/Diagram.vue'], resolve),
        },{
          path: 'runDetail',
          name: 'RunDetail',
          component: resolve => require(['../page/RunDetail.vue'], resolve),
        }
      ]
    }
  ]
})
